package com.zlz.server.controller;

import com.zlz.server.pojo.RespBean;
import com.zlz.server.service.IAdminService;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

/**
 * @author: zlz
 * @date: 2021/3/21 13:21
 * @description:
 * @since: JDK1.8
 */
@Controller
@RequestMapping("/chat")
public class ChatController {
    @Resource
    private IAdminService iAdminService;

    @ApiOperation(value = "获取所有操作员")
    @GetMapping("/admin")
    public RespBean getAllAdmins(String keywords) {
        return RespBean.success(iAdminService.getAllOperates(keywords));
    }
}
